const os = require('os')
var osu = require('node-os-utils')
var cpu = osu.cpu
cpu.usage()
    .then(info => {
        console.log(info)
    })
var memory_ratio = (os.totalmem - os.freemem)/os.totalmem;
console.log(memory_ratio)
var netstat = osu.netstat
var old_net_in = 503433038;
var old_net_out = 574679818;
netstat.stats()
    .then(info => {
        var new_net_in = Number(info[1].inputBytes) 
        var new_net_out = Number(info[1].outputBytes)
        console.log((new_net_out-old_net_out + new_net_in-old_net_in)/2097152)
        old_net_in = new_net_in
        old_net_out = new_net_out
    })

console.log((503450425+ 574699885))